#include <iostream>
#include <cstdlib>
#include <unistd.h>
#include "log.hpp"
using namespace std;

void updateEnv()
{
    string update_env = "METHOD=GET";
    if (putenv((char *)update_env.c_str()) != 0)
    {
        Log(WARNING, "putenv is error");
    }   
}

int main()
{
    char* out = getenv("METHOD");
    if(out == nullptr)
    {
        cout << "null" << endl;
    }
    else
    {
        cout << out << endl;
    }
    return 0;
}



    // if(execl("/usr/bin/env", "env", nullptr) < 0)
    // {
    //     cout << "is warning" << endl;
    // }